﻿using System.Collections.Generic;
using System.Diagnostics.Contracts;
using IMModel.Domain.Common;

namespace IMModel.Domain
{
    class CategorySectionTermRespondentIndexCollectionProvider : IIndexCollectors<CategorySectionTerm, CharacteristicTerm>
    {
        public static readonly CategorySectionTermRespondentIndexCollectionProvider Instance = new CategorySectionTermRespondentIndexCollectionProvider();

        public IEnumerable<CharacteristicTerm> GetCollectors(CategorySectionTerm item)
        {
            Contract.Assert(item != null);            
            return item.CharacteristicTerms;
        }
    }
}